package com.twu.biblioteca;

public class Book {
    private int id;
    private boolean status;
    private String name;

    public Book(int id, String name, boolean status) {
        this.id = id;
        this.name = name;
        this.status = status;
    }

    public Boolean isRentable() {
        return this.status;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public boolean getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return "id:"+id+ "   <<" + name + ">>";
    }
}
